package com.breakfast.fun.ui.user.feedback;

import com.breakfast.fun.data.entity.user.feedback.Feed;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/9/9.
 */
public class FeedBackModel implements FeedBackContract.Model {
    @Override
    public Observable<Feed> getFeedModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getFeedModel(map)
                .compose(RxSchedulers.io_main());
    }
}
